package com.itheima.service;

import com.itheima.common.PageInfo;
import com.itheima.pojo.Category;
import com.itheima.pojo.Employee;
import com.itheima.vo.CategoryVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author YangJiaHao
 */
@Transactional
public interface CategoryService {


    boolean save(Category category);

    List<Category> getList(Integer type);

    PageInfo<Category> page(Integer page, Integer pageSize);

    boolean delete(String id);

    boolean update(Category category);

    List<CategoryVo> list();

}
